<?php

namespace app\admin\common\validate\admin;

use think\Validate;

class AdminUser extends Validate
{
    protected $rule = [
        'username' => 'require|max:25',
        'password' => 'require|max:25',
    ];

    protected $message = [
        'username.require' => '用户名不能为空',
        'username.max' => '用户名不能超过25个字符',
        'password.require' => '密码不能为空',
        'password.max' => '密码不能超过25个字符',
    ];


}